﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Windows.Data;

namespace LuWeibo.Views
{
    //发布微博
    public partial class PostStatusPage : PhoneApplicationPage
    {
        public PostStatusPage()
        {
            InitializeComponent();

            this.Loaded += new RoutedEventHandler(PostStatusPage_Loaded);
        }

        void PostStatusPage_Loaded(object sender, RoutedEventArgs e)
        {
            PublishText.Focus();
        }

        private void PublishText_TextChanged(object sender, TextChangedEventArgs e)
        {
            TextBox tb = sender as TextBox;
            BindingExpression expression = tb.GetBindingExpression(TextBox.TextProperty);
            expression.UpdateSource();
        }
    }
}